package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    /*
    * 根据套餐id查询套餐包含的菜品id
    *
    * */


    List<Long> getSetmealDishIds(@Param("dishIds") List<Long> dishIds);

    void insertBatch(@Param("setmealDishes") List<SetmealDish> setmealDishes);

    void deleteBySetmealIds(List<Long> ids);

    List<SetmealDish> getSetmealDishById(@Param("id") Long id);
}
